Completed
Push — master ( 91efdf...4b34dd )
by Reetesh
34s
created

manager.js ➔ ???   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 3
Bugs 0 Features 0
Metric Value
c 3
b 0
f 0
nc 1
dl 0
loc 3
rs 10
cc 1
nop 0
1
'use strict';
2
3
let
4
  Env = require('./../../core/env').Env,
5
  ManagerCore = require('./../core/manager').Manager,
6
  Process = require('./tunnel/process').Process,
7
  BinaryVars = require('./tunnel/binary').BinaryVars
8
9
const VARS = {
10
  processName: (!Env.isWindows ? BinaryVars.path : 'cbt-tunnels-win64.exe'),
11
  tunnelArg: '--tunnelname'
12
}
13
14
class Manager {
15
16
  static running() {
17
    return ManagerCore.running(Process, VARS.processName, VARS.tunnelArg)
18
  }
19
20
  static withId() {
21
    return ManagerCore.withId(Process, VARS.processName, VARS.tunnelArg)
22
  }
23
24
  static withoutId() {
25
    return ManagerCore.withoutId(Process, VARS.processName, VARS.tunnelArg)
26
  }
27
28
}
29
30
exports.Manager = Manager
31